package com.example.springboot.service;

import com.example.springboot.controller.dto.LoginDto;
import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.controller.request.LoginRequest;
import com.example.springboot.controller.request.PasswordRequest;
import com.example.springboot.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Description:业务层接口
 *
 * @Author 马钰涵
 * @Create 2023/8/5 9:15
 * @Version 1.0
 */
public interface IAdminService {
    List<Admin> list();

    PageInfo<Admin> page(BaseRequest baseRequest);

    void save(Admin admin);

    Admin getById(Integer id);

    void update(Admin admin);

    void deleteById(Integer id);

    LoginDto login(LoginRequest request);

    void updatePassword(PasswordRequest request);
}
